Lua/Server/Player/Functions/SetHealth
From JC2-MP Documentation
Returns | none |
---|---|
Prototype | Player:SetHealth(number health) |
Description | No description |
Description
Sets the player's health, as a decimal number somewhere between 0 and 1. If the player's maximum health has been increased, such as by firing the "ply.armorpart.add" Game Event, 1 corresponds to the new maximum, not the default maximum.